package com.ddk.en.mongo.model.repository.log;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.IndexDirection;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.Date;

@Getter
@Setter
public class BaseLog {
    @Id
    private String id;

    private String url;

    private String param;

    private String result;

    @Indexed(direction = IndexDirection.DESCENDING)
    private Date logTime;

    @Indexed //添加索引
    private String idcard;
}
